package com.ws;

import com.ws.entity.Stu;
import com.ws.mapper.StuMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @description:
 * @Author gckj
 * @Email:
 * @Date: 2024/8/20 11:29
 * @Version 1.0
 */
@RestController
public class TestController {

    @Resource
    private StuMapper stuMapper;

    @GetMapping("/test")
    public Stu get(){
        return stuMapper.selectById(1);
    }
}
